package day52.org.service.impl;

import day52.basic.service.impl.BaseServiceImpl;
import day52.org.domain.Employee;
import day52.org.mapper.EmployeeMapper;
import day52.org.service.IEmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmployeeServiceImpl extends BaseServiceImpl<Employee> implements IEmployeeService {
    @Autowired
    private EmployeeMapper employeeMapper;

    @Override
    public List<Employee> findAdmin(Long shopId) {
        List<Employee> employees = employeeMapper.findAdmin(shopId);
        return employees;
    }

    @Override
    public List<Employee> findEmpByShopId(Long shopId) {
        return employeeMapper.findEmpByShopId(shopId);
    }
}
